Lonworks Object Server Read/Write communication driver

 

Lonworks Object Server Read/Write communication driver is the driver to communicate with LNS controller of Echelon Corporation in U.S.A.

 

Note) Lonworks Object Server Read/Write communication driver needed COM object of LonworksObjectServer 3.08(or compatible, have to install).

Also, you have to gegister 'Network DB', 'Sub System', 'Device' by using 'LonMaker for Windows'(etc) program.

When you install 'LonMaker for Windows', 'LonworksObjectServer( lcaobjsv.ocx )' is installed together.

 

Note) Setting for LG system air conditioning by using Lonworks Object Server Read/Write communication driver (BNU-LW equipment)

 

1. Read Settings

 

<Figure 1> is read setting example of Lonworks Object Server Read/Write communication driver.

<Figure 1>  Read setting example of Lonworks Object Server Read/Write communication driver

Please input 'None' at Device part of  <Figure 1>.

In protocol option part, you can set the following: Network DB name( demo, ... ), periodic read time for each point(0 = don't use periodic read, 1 ~ = periodic read time(milli second unit), Default = 0). Each argument  is a comma-delimited.

 

Note) Lonworks Object Server Read/Write communication driver must not use 'Thread' option.

 

Lonworks Object Server Read/Write communication driver read schedule

Read schedule setting parameters are as follows:

1) Name of Monitor Set – Monitor Set name of setting program.

2) Name of Monitor Point – Monitor Point name in Monitor Set.

3) Read start address – don't care.

4) Save start address for Communication Server – Saving start address of Communication Server.

5) Read Size – 1 ~ 256.

 2 or grerter than = read from Monitor Point and next point.....

If a Monitor Point have multi data, you have to set 'read size' = 1.

 

Read schedule example)

READ,   000, FreeProg_nvoV1_15,     0,    0,   1,

READ,   001, HwOut1_nviFP_01,       0,    20,   8,

READ,   002, FreeProg_nviFP_09,     0,    30,   10,

READ,   003, FreeProg_nvoC26_40,    0,    50,   1,

READ,   004, HwIn1_nvoFP_01,        0,    80,   8,

 

Lonworks Object Server Read/Write communication driver store the same data in WORD, DWORD, FLOAT memory, but the data format are different.

Also, save readed string data at STRING memory.

If you click the icon  in protocol option part, you can see the dialog box such as <Figure 2>. you can also set Monitor Set, read schedule, Network DB name, periodic read time by using this part.

<Figure 2> Example of Lonworks Object Server Read/Write communication driver¡¯s protocol option dialog box

When you click  button in dialog box of <Figure 2>, dialog box of <Figure 3> will be shown.

 

Note) <Figure 3> dialog box  is execution example of ¡®program folder\Protocol\RegMonSet.exe¡¯.

You can run this program for Monitor Set(Point), but read schedule can set by using <Figure 2>.

<Figure 3> Dialog box example for Lonwork Interface/Network Database selection

When you click button of <Figure 3>, dialog box of <Figure 4> will be shown.

<Figure 4> Dialog box example for read schedule and sub system selection

You can set read schedule by using , ,  button and listbox of <Figure 4>.

<Figure 5> Example of Lonworks Object Server Read/Write communication driver¡¯s read schedule Add/Edit dialog box

When you click Add button or Edit button in dialog box of <Figure 4>, dialog box of <Figure 5> will be shown.

<Figure 6> is dialog box example for Monitor Set registration dialog box.

You can select Monitor Set registration dialog box by clicking  button at <Figure 4> after selection ¡®Sub System¡¯.

<Figure 6> Example of Monitor Set registration dialog box

Left list of <Figure 6> is Network Variables(Point) in current Device, right list are registered Monitor Set(upper) and Monitor Point.

You can add, delete(Monitor Set) by using ,  button of <Figure 6>.

After selecting the Network Variable, click  button, you can register Monitor Point.

By using  button, you can delete registered Monitor Point.

The method of multiple selection of Network Variable or Monitor Point : by using Shift, Ctrl key.(for register of delete)

Download of RegMonSet.exe file

Download RegMonSet.zip file

 

2. Writing settings

You can control the value of Monitor Point by using 'writing settings'. 

 

Digital Write

Digital write setting parameters are as follows:

1)  PORT                   Port no. (0 ~ 255)

2)  STATION             Command type.

255 : setting command of Credit Info,

254 : read command of Credit Info, ( refer to <Table 1> ),

Monitor Point name = ***_nviModify(*** : Functional Block name) : 0 ~ 5 variable type,( refer to <Table 2> )

other : don't care.

3)  ADDRESS          Writing address for multi point.

 Monitor Point name = **_nviModify(*** : Functional Block name) : Index number,( refer to <Table 2> )

4)  Extra1                  Monitor Set name.Minitor Point name.

can input registered Monitor Set and Point,  Note) delimiter : . ( dot )

 Monitor Point name = ***_nviModify(*** : Functional Block name) : nvoV1_15, ... internal value, refer to <Table 2>,

Station = 255 : input Customer ID.Customer Key value,

Station = 254 : save reade Credit status value from Address, ( refer to <Table 1>) 

5) Extra2                   selection of multi point. 0 = single point, 1 = multi point.

                                         Monitor Point name = **_nviModify(*** : Functional Block name) : variable value Mode(0 = AUTOMATIC, 1 = MANUAL),( refer to <Talbe 2> )

 

<Table 1> is data saving address and contents for Credit Info read command.

Data saving address Contents Remarks
Address + 0 License Type 0 = Legacy or demo mode,
1 = Standard mode(key lock normal status)
Address + 1 remaining until expiration date 255 = normal operation,
other = demo mode, ...
Address + 2 count of Licensed Credit  
Address + 3 count of used Credit  
Address + 4 count of max Deficit Credit  
Address + 5 count of Deficit Credit  
<Table 1> Data saving address and contents for Credit Info read command

<Table 2> is writing parameters for nviModify point. 

Parameter for write Range Setting value
Port 0 ~ 255  Port no. (0 ~ 255)
Station 0 ~ 5 0 = VARIABLE,
1 = CONSTANT,
2 = INPUT,
3 = OUTPUT,
4 = CONTROLLER,
5 = TIMER
Address 0 ~ 1 ~ range of internal variable (nvoV1_15, ...)
Extra1 ???.***_nviModify ??? = registered Monitor Set name,
***_nviModify = Monitor Point name
(*** : Functional Block name)
Extra2 0 ~ 1 0 = AUTOMATIC, 1 = MANUAL
Output value Interger of float value writing value
<Table 2> Writing parameters for nviModify point

Write example 1)

PORT:0,  station:0, ADDRESS:0000, Extra1:005.HwOut1_nviFP_01,  Extra2 : 0

The setting parameter shown above is control example of HwOut1_nviFP_01 Monitor Point in 005 Monitor Set.

 

Write example 2)

PORT:0,  station:0, ADDRESS:0000, Extra1:005.HwOut1_nviFP_06,  Extra2 : 0

The setting parameter shown above is control example of HwOut1_nviFP_06 Monitor Point in 005 Monitor Set.

 

Analog Write

Analog write and digital write have the same setting parameters except output value.

 

Write example 1)

PORT:0,  station:0, ADDRESS:0001, Extra1:000.FreeProg_nviModify,  Extra2 : 0, Output value = 1

The setting parameter shown above is setting example of FreeProg_nviModify Monitor Point in 000 Monitor Set, variable type : ¡®VARIABLE¡¯, Index = 1, AUTOMATIC, setting value = 1.

 

Write example 2)

PORT:0,  station:0, ADDRESS:0002, Extra1:000.FreeProg_nviModify,  Extra2 : 1, Output value = 50

The setting parameter shown above is setting example of FreeProg_nviModify Monitor Point in 000 Monitor Set, variable type : ¡®VARIABLE¡¯, Index = 2, MANUAL, setting value = 50.

 

Write example 3)

PORT:0,  station:3, ADDRESS:0005, Extra1:000.FreeProg_nviModify,  Extra2 : 1, Output value = 1

The setting parameter shown above is setting example of FreeProg_nviModify Monitor Point in 000 Monitor Set, variable type : ¡®OUTPUT¡¯, Index = 5, MANUAL, setting value = 1.

 

3. Appreance of Lonworks equipment

<Figure 7> is appearance of  Lonworks equipment.(example)

<Figure 7> Appearance of  Lonworks equipment

 

4. Technical support

You can get technical support for Lonworks Object Server Read/Write communication driver and Lonwork equipment.

Company : Turbo Tech System Co., Ltd.

Telephone : 82-2-2043-0985

Website : www.turbots.co.kr